import type { ModuleType } from '@/model/sys/moduleModel'

export interface RoleQuery {
  roleName?: string
  enabled?: boolean
}

export interface RoleModuleQuery {
  roleId: string
  moduleTypes?: ModuleType[]
}

export interface RoleResp {
  roleId: string
  roleName: string
  sort: number
  remark: string
  createTime: Date
  enabled: boolean
}

export interface RoleAddReq {
  roleName: string
  sort: number
  enabled: boolean
  remark?: string
}

export interface RoleUpdateReq {
  roleId: string
  roleName: string
  sort: number
  enabled: boolean
  remark?: string
}

export interface RoleDeleteReq {
  roleId: string
}

export interface RoleAssignModulesReq {
  roleId: string
  moduleIdList: string[]
}
